//
//  TTReceiver.m
//  iBeaconDemo
//
//  Created by cry on 17/1/10.
//  Copyright © 2017年 eGova. All rights reserved.
//

#import "TTReceiver.h"

@implementation TTReceiver

- (instancetype)initWithxPos:(double)xPos
                        yPos:(double)yPos
                        uuid:(NSString *)uuid
                  majorValue:(CLBeaconMajorValue) majorValue
                  minorValue:(CLBeaconMinorValue) minorValue{
    
    if (self = [super init]) {
        _xPos = xPos;
        _yPos = yPos;
        _UUID = uuid;
        _majorValue = majorValue;
        _minorValue = minorValue;
    }
    return self;
}

- (instancetype)initWithxPos:(double)xPos
                        yPos:(double)yPos
                   floorName:(NSString *)floorName
                        uuid:(NSString *)uuid
                  majorValue:(CLBeaconMajorValue) majorValue
                  minorValue:(CLBeaconMinorValue) minorValue{
    if (self = [self initWithxPos:xPos yPos:yPos uuid:uuid majorValue:majorValue minorValue:minorValue]) {
        _floorName = floorName;
    }
    return self;
}

- (NSString *)keyID{
    return [NSString stringWithFormat:@"%@_%hd_%hd", self.UUID, self.majorValue, self.minorValue];
}

+ (NSArray<TTReceiver *> *)findByParkID:(NSInteger)parkID{
    
    return [NSArray array];
}


@end
